<?php
/**
 * Created by PhpStorm.
 * User: Martin.Wu
 * Date: 2021/3/31
 * Time: 17:21
 *
 **/

namespace common\strategy\platform;

use common\strategy\StrategyAbstract;

class Ebay extends StrategyAbstract
{
    public function doAction($oauth = [])
    {
        //如果判断字符串是否在数组中的判断
        if (!empty($oauth)) {
            return [
                'ruName' => $oauth['ru_name'],
                'credentials' => [
                    'devId' => $oauth['dev_key'],
                    'appId' => $oauth['app_key'],
                    'certId' => $oauth['cert_key']
                ],
                'oauth' => $oauth
            ];
        }
        return [];
    }
}
